//
//  WZGConvertSuccessVC.m
//  ZCJZ
//
//  Created by sujeking on 2019/10/29.
//  Copyright © 2019 jeking. All rights reserved.
//

#import "WZGConvertSuccessVC.h"
#import "TBCityIconFont.h"
#import "ZCOrderListVC.h"
@interface WZGConvertSuccessVC ()

@property (nonatomic, strong) UIImageView *imv;

@end

@implementation WZGConvertSuccessVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}

- (void)setupUI {
    UIImage *img = [UIImage iconWithInfo:TBCityIconInfoMake(@"\U0000e648", 90, [UIColor redColor])];
    self.imv.image = img;
}

- (void)loadHomeAction {
    [self.tabBarController setSelectedIndex:0];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self.navigationController popToRootViewControllerAnimated:YES];
    });
}

- (void)loadOrderList {
    ZCOrderListVC *vc = [[ZCOrderListVC alloc] init];
    NSMutableArray *vcs = [[self.navigationController childViewControllers] mutableCopy];
    [vcs removeObject:self];
    [vcs addObject:vc];
    [self.navigationController setViewControllers:vcs animated:YES];
}

@end
